package com.guangfeng.yql.security.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Permission {
    @AliasFor("hashRoles")
    String[] value();

    boolean isRole() default true;

    String[] hashRoles();

    boolean isPermission() default false;

    String[] hasPermissions();

}
